package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * unit对象 community_unit
 * 
 * @author hanpee
 * @date 2024-03-25
 */
public class CommunityUnit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键(自增) */
    private Long id;

    /** 单元名称 */
    @Excel(name = "单元名称")
    private String name;

    /** 楼宇id */
    @Excel(name = "楼宇id")
    private Long buildingId;

    /** 创建人 */
    @Excel(name = "创建人")
    private String creator;

    /** 删除标记，0为删除，1已删除 */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setBuildingId(Long buildingId) 
    {
        this.buildingId = buildingId;
    }

    public Long getBuildingId() 
    {
        return buildingId;
    }
    public void setCreator(String creator) 
    {
        this.creator = creator;
    }

    public String getCreator() 
    {
        return creator;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("buildingId", getBuildingId())
            .append("createTime", getCreateTime())
            .append("creator", getCreator())
            .append("remark", getRemark())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
